package com.czk.desensitization.practice;

/**
 * 通过枚举定义策略
 *
 * @Author:ChenZhangKun
 * @Date: 2021/7/22 10:50
 */
public enum IdReplaceStrategy {
    ID_REPLACE_STRATEGY(id -> id = id * 10);
    private final IdReplace idReplace;

    IdReplaceStrategy(IdReplace idReplace) {
        this.idReplace = idReplace;
    }

    public IdReplace getIdReplace() {
        return idReplace;
    }
}
